package com.cut.cloud.controller;

import com.cut.cloud.bean.CutCloud;
import com.cut.cloud.service.CutCloudService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class CutCloudController
{
    @Resource
    private CutCloudService cutCloudService;

    @RequestMapping("/cut")
    public String cutCloud(String name)
    {
        CutCloud cutCloud = cutCloudService.cutCloud(name);
        return cutCloud.getName();
    }
}
